package com.leonxtp.switchbutton;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.leonxtp.library.MySwitchButton;
import com.leonxtp.library.SwitchButton;

public class MainActivity extends AppCompatActivity {

    private SwitchButton switchButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        switchButton = findViewById(R.id.sync_button);

    }

    public void onChange(View v) {

        switchButton.updateTextOff("正在连接");

    }
}
